package net.jxtz.jxtzos.entity.landtax;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author a123
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("landtax_residential")
public class Residential implements Serializable {

    @ExcelIgnore
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 县/区
     */
    @ExcelProperty("县区名称")
    private String country;

    /**
     * 街道办
     */
    @ExcelProperty("街道办事处")
    private String addressOffice;

    /**
     * 社区
     */
    @ExcelProperty("社区名称")
    private String community;

    /**
     * 小区名
     */
    @ExcelProperty("小区名称")
    private String village;

    /**
     * 楼幢名称及编号
     */
    @ExcelProperty("楼幢名称及编号")
    private String buildingName;

    /**
     * 地税前台产证匹配
     */
    @ExcelProperty("匹配")
    private String landTaxMatching;

    /**
     * 房产类型
     */
    @ExcelProperty("房产类型")
    private String houseType;

    /**
     * 总楼层
     */
    @ExcelProperty("总层数")
    @TableField("build_floor")
    private String floor;


    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Integer createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Integer updateTime;

    @ExcelIgnore
    @TableLogic
    private Integer deleted;
}
